﻿namespace TemplateData
{
    public class DetailTemplate : IDetailTemplate
    {
        public string Id { get; set; }

        public string LabelName { get; set; }

        public bool IsRequiredField { get; set; }

        public ControlType ControlType { get; set; }

        public string RegularExpression { get; set; }

        public int? MaxLength { get; set; }

        public DataType DataType { get; set; }

        public string SampleData { get; set; }

        public string ValidationErrorMessage { get; set; }

        public string PlaceHolder { get; set; }

        public string ToolTip { get; set; }

        public bool Enable { get; set; }

        public bool Visibility { get; set; }

        public string Info1 { get; set; }

        public string Info2 { get; set; }

        public string Info3 { get; set; }

        public string Info4 { get; set; }

        public DetailTemplate(string id, string labelName, bool isRequiredField, ControlType controlType, string regularExpression, int? maxLength, 
            DataType dataType, string sampleData, string validationErrorMessage, string placeHolder,
            string toolTip, bool enable, bool visibility, string info1, string info2, string info3, string info4)
        {
            Id = id;
            LabelName = labelName;
            IsRequiredField = isRequiredField;
            ControlType = controlType;
            RegularExpression = regularExpression;
            MaxLength = maxLength;
            DataType = dataType;
            SampleData = sampleData;
            ValidationErrorMessage = validationErrorMessage;
            PlaceHolder = placeHolder;
            ToolTip = toolTip;
            Enable = enable;
            Visibility = visibility;
            Info1 = info1;
            Info2 = info2;
            Info3 = info3;
            Info4 = info4;
        }
    }
}
